package com.fw.ui.view.settings.globalsetting;

import static org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.fw.service.globalsetting.bean.GlobalSettingBean;
import com.fw.ui.bao.GlobalSettingBAO;
import com.fw.ui.bao.MessageBAO;
import com.fw.ui.core.ViewDescription;
import com.fw.ui.util.UICommonUtils;
import com.fw.ui.util.VaadinApplicationObjectSupport;
import com.fw.ui.view.AbstractView;
import com.fw.ui.view.settings.globalsetting.event.EditGlobalSettingClearButtonClickListener;
import com.fw.ui.view.settings.globalsetting.event.EditGlobalSettingSaveButtonClickListener;
import com.vaadin.data.validator.RegexpValidator;
import com.vaadin.server.Page;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Notification;
import com.vaadin.ui.Panel;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;

@org.springframework.stereotype.Component
@Scope(SCOPE_PROTOTYPE)
@ViewDescription(name = "settings-globalsetting", path = "/settings/globalsetting-edit")
public class EditGlobalSettingView extends AbstractView {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Autowired
    protected transient VaadinApplicationObjectSupport app;

    @Autowired
    private GlobalSettingBAO globalSettingBAO;
    @Autowired
    private MessageBAO messageBAO;

    /**
     * BEAN
     */
    private GlobalSettingBean globalSettingBean = new GlobalSettingBean();

    /**
     * EVENT
     */
    @Autowired
    private EditGlobalSettingSaveButtonClickListener editGlobalSettingSaveButtonClickListener;
    @Autowired
    private EditGlobalSettingClearButtonClickListener editGlobalSettingClearButtonClickListener;

    /**
     * COMPONENT
     */
    private Panel editPasswordPolicyPanel = new Panel();

    private Label lblPayAtAllServiceInquiryPeriod = new Label("", ContentMode.HTML);
    private Label lblTransactionReportMaximumPeriodSearchAeonUser = new Label("", ContentMode.HTML);
    private Label lblTransactionReportMaximumPeriodSearchMerchantUser = new Label("", ContentMode.HTML);
    private Label lblAuditLogMaximumPeriodSearch = new Label("", ContentMode.HTML);

    private Label lblPayAtAllServiceInquiryPeriodValidateMessage = new Label("", ContentMode.HTML);
    private Label lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage = new Label("", ContentMode.HTML);
    private Label lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage = new Label("", ContentMode.HTML);
    private Label lblAuditLogMaximumPeriodSearchValidateMessage = new Label("", ContentMode.HTML);

    private HorizontalLayout row1Validate = new HorizontalLayout();
    private HorizontalLayout row2Validate = new HorizontalLayout();
    private HorizontalLayout row3Validate = new HorizontalLayout();
    private HorizontalLayout row4Validate = new HorizontalLayout();

    private Button btnSave = new Button();
    private Button btnClear = new Button();

    private TextField txtPayAtAllServiceInquiryPeriod = new TextField();
    private TextField txtTransactionReportMaximumPeriodSearchAeonUser = new TextField();
    private TextField txtTransactionReportMaximumPeriodSearchMerchantUser = new TextField();
    private TextField txtAuditLogMaximumPeriodSearch = new TextField();

    @Autowired
    private UICommonUtils uiCommonUtils;

    @Override
    public void updateStrings() {

	this.lblPayAtAllServiceInquiryPeriod.setValue(this.messageBAO
		.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.label.payAtAllServiceInquiryPeriod"));
	this.lblTransactionReportMaximumPeriodSearchAeonUser
		.setValue(this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.label.transactionReportMaximumPeriodSearchAeonUser"));
	this.lblTransactionReportMaximumPeriodSearchMerchantUser
		.setValue(this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.label.transactionReportMaximumPeriodSearchMerchantUser"));
	this.lblAuditLogMaximumPeriodSearch.setValue(this.messageBAO
		.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.label.auditLogMaximumPeriodSearch"));

	this.btnSave.setCaption(this.messageBAO.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.button.save"));
	this.btnClear.setCaption(this.messageBAO.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.button.clear"));

	this.editPasswordPolicyPanel.setCaption(this.messageBAO
		.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.title"));
    }

    @Override
    public void init() {
	this.setSizeFull();

	this.editPasswordPolicyPanel.setSizeFull();
	this.editPasswordPolicyPanel.setId("editPasswordPolicyPanel");

	this.lblPayAtAllServiceInquiryPeriodValidateMessage.setId("lblPayAtAllServiceInquiryPeriodValidateMessage"
		+ UICommonUtils.INCLUDE_VALUE_COMPONENT_PREFIX);
	this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage
		.setId("lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage" + UICommonUtils.INCLUDE_VALUE_COMPONENT_PREFIX);
	this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage
		.setId("lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage" + UICommonUtils.INCLUDE_VALUE_COMPONENT_PREFIX);
	this.lblAuditLogMaximumPeriodSearchValidateMessage.setId("lblAuditLogMaximumPeriodSearchValidateMessage"
		+ UICommonUtils.INCLUDE_VALUE_COMPONENT_PREFIX);

	this.row1Validate.setId("row1Validate" + UICommonUtils.INCLUDE_VISIBLE_COMPONENT_PREFIX);
	this.row2Validate.setId("row2Validate" + UICommonUtils.INCLUDE_VISIBLE_COMPONENT_PREFIX);
	this.row3Validate.setId("row3Validate" + UICommonUtils.INCLUDE_VISIBLE_COMPONENT_PREFIX);
	this.row4Validate.setId("row4Validate" + UICommonUtils.INCLUDE_VISIBLE_COMPONENT_PREFIX);

	String width200px = "200px";
	String width500px = "500px";

	this.lblPayAtAllServiceInquiryPeriodValidateMessage.setWidth(width200px);
	this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage.setWidth(width200px);
	this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage.setWidth(width200px);
	this.lblAuditLogMaximumPeriodSearchValidateMessage.setWidth(width200px);

	this.txtPayAtAllServiceInquiryPeriod.setWidth(width200px);
	this.txtTransactionReportMaximumPeriodSearchAeonUser.setWidth(width200px);
	this.txtTransactionReportMaximumPeriodSearchMerchantUser.setWidth(width200px);
	this.txtAuditLogMaximumPeriodSearch.setWidth(width200px);

	this.lblPayAtAllServiceInquiryPeriodValidateMessage.setSizeUndefined();
	this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage.setSizeUndefined();
	this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage.setSizeUndefined();
	this.lblAuditLogMaximumPeriodSearchValidateMessage.setSizeUndefined();

	this.lblPayAtAllServiceInquiryPeriodValidateMessage.addStyleName("validate-error");
	this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage.addStyleName("validate-error");
	this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage.addStyleName("validate-error");
	this.lblAuditLogMaximumPeriodSearchValidateMessage.addStyleName("validate-error");

	VerticalLayout mainLayout = new VerticalLayout();
	mainLayout.setSizeFull();
	mainLayout.setSizeUndefined();
	mainLayout.setSpacing(true);
	mainLayout.setWidth("100%");

	this.editPasswordPolicyPanel.setContent(mainLayout);

	VerticalLayout formLayout = new VerticalLayout();
	formLayout.setId("formPanel");
	formLayout.setSizeUndefined();
	formLayout.setWidth("100%");
	formLayout.setSpacing(true);

	HorizontalLayout row0 = new HorizontalLayout();
	HorizontalLayout row1 = new HorizontalLayout();
	HorizontalLayout row2 = new HorizontalLayout();
	HorizontalLayout row3 = new HorizontalLayout();
	HorizontalLayout row4 = new HorizontalLayout();
	HorizontalLayout row5 = new HorizontalLayout();
	HorizontalLayout row6 = new HorizontalLayout();
	HorizontalLayout row7 = new HorizontalLayout();

	row1.setSpacing(true);
	row2.setSpacing(true);
	row3.setSpacing(true);
	row4.setSpacing(true);
	row5.setSpacing(true);
	row6.setSpacing(true);
	row7.setSpacing(true);
	row1Validate.setSpacing(true);
	row2Validate.setSpacing(true);
	row3Validate.setSpacing(true);
	row4Validate.setSpacing(true);

	row1.setSizeUndefined();
	row2.setSizeUndefined();
	row3.setSizeUndefined();
	row4.setSizeUndefined();
	row1Validate.setSizeUndefined();
	row2Validate.setSizeUndefined();
	row3Validate.setSizeUndefined();
	row4Validate.setSizeUndefined();

	row1.setWidth(width500px);
	row2.setWidth(width500px);
	row3.setWidth(width500px);
	row4.setWidth(width500px);
	row1Validate.setWidth("100%");
	row2Validate.setWidth("100%");
	row3Validate.setWidth("100%");
	row4Validate.setWidth("100%");

	this.btnSave.addStyleName("button-blue");
	this.btnClear.addStyleName("button-red");
	this.btnSave.setDisableOnClick(true);
	this.btnClear.setDisableOnClick(true);
	this.btnSave.setWidth("70px");
	this.btnClear.setWidth("70px");

	Label lblSepValidate1 = new Label("");
	Label lblSepValidate2 = new Label("");
	Label lblSepValidate3 = new Label("");
	Label lblSepValidate4 = new Label("");
	Label lblSepValidate5 = new Label("");
	Label lblSepValidate6 = new Label("");
	Label lblSepValidate7 = new Label("");
	Label lblSepValidate8 = new Label("");
	Label lblSepValidate9 = new Label("");
	Label lblSepValidate10 = new Label("");

	lblSepValidate1.setWidth(width200px);
	lblSepValidate2.setWidth(width200px);
	lblSepValidate3.setWidth(width200px);
	lblSepValidate4.setWidth(width200px);
	lblSepValidate5.setWidth(width200px);
	lblSepValidate6.setWidth(width200px);
	lblSepValidate7.setWidth(width200px);
	lblSepValidate8.setWidth(width200px);
	lblSepValidate9.setWidth(width200px);
	lblSepValidate10.setWidth(width200px);

	row1.addComponent(lblPayAtAllServiceInquiryPeriod);
	row1.addComponent(txtPayAtAllServiceInquiryPeriod);
	row1.setComponentAlignment(lblPayAtAllServiceInquiryPeriod, Alignment.MIDDLE_RIGHT);
	row1.setComponentAlignment(txtPayAtAllServiceInquiryPeriod, Alignment.MIDDLE_LEFT);

	row1Validate.addComponent(lblSepValidate1);
	row1Validate.addComponent(this.lblPayAtAllServiceInquiryPeriodValidateMessage);
	row1Validate.setComponentAlignment(this.lblPayAtAllServiceInquiryPeriodValidateMessage, Alignment.TOP_LEFT);

	row2.addComponent(lblTransactionReportMaximumPeriodSearchAeonUser);
	row2.addComponent(txtTransactionReportMaximumPeriodSearchAeonUser);
	row2.setComponentAlignment(lblTransactionReportMaximumPeriodSearchAeonUser, Alignment.MIDDLE_RIGHT);
	row2.setComponentAlignment(txtTransactionReportMaximumPeriodSearchAeonUser, Alignment.MIDDLE_LEFT);

	row2Validate.addComponent(lblSepValidate2);
	row2Validate.addComponent(this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage);
	row2Validate.setComponentAlignment(this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage, Alignment.TOP_LEFT);

	row3.addComponent(lblTransactionReportMaximumPeriodSearchMerchantUser);
	row3.addComponent(txtTransactionReportMaximumPeriodSearchMerchantUser);
	row3.setComponentAlignment(lblTransactionReportMaximumPeriodSearchMerchantUser, Alignment.MIDDLE_RIGHT);
	row3.setComponentAlignment(txtTransactionReportMaximumPeriodSearchMerchantUser, Alignment.MIDDLE_LEFT);

	row3Validate.addComponent(lblSepValidate3);
	row3Validate.addComponent(this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage);
	row3Validate.setComponentAlignment(this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage, Alignment.TOP_LEFT);

	row4.addComponent(lblAuditLogMaximumPeriodSearch);
	row4.addComponent(txtAuditLogMaximumPeriodSearch);
	row4.setComponentAlignment(lblAuditLogMaximumPeriodSearch, Alignment.MIDDLE_RIGHT);
	row4.setComponentAlignment(txtAuditLogMaximumPeriodSearch, Alignment.MIDDLE_LEFT);

	row4Validate.addComponent(lblSepValidate4);
	row4Validate.addComponent(this.lblAuditLogMaximumPeriodSearchValidateMessage);
	row4Validate.setComponentAlignment(this.lblAuditLogMaximumPeriodSearchValidateMessage, Alignment.TOP_LEFT);

	row6.addComponent(btnSave);
	row6.addComponent(btnClear);

	formLayout.addComponent(row0);
	formLayout.addComponent(row1);
	formLayout.addComponent(row1Validate);
	formLayout.addComponent(row2);
	formLayout.addComponent(row2Validate);
	formLayout.addComponent(row3);
	formLayout.addComponent(row3Validate);
	formLayout.addComponent(row4);
	formLayout.addComponent(row4Validate);
	formLayout.addComponent(row5);
	formLayout.addComponent(row6);
	formLayout.addComponent(row7);

	formLayout.setComponentAlignment(row1, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row2, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row3, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row4, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row5, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row6, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row7, Alignment.MIDDLE_CENTER);
	formLayout.setComponentAlignment(row1Validate, Alignment.TOP_CENTER);
	formLayout.setComponentAlignment(row2Validate, Alignment.TOP_CENTER);
	formLayout.setComponentAlignment(row3Validate, Alignment.TOP_CENTER);
	formLayout.setComponentAlignment(row4Validate, Alignment.TOP_CENTER);

	row1Validate.setVisible(false);
	row2Validate.setVisible(false);
	row3Validate.setVisible(false);
	row4Validate.setVisible(false);

	mainLayout.addComponent(formLayout);
	mainLayout.setComponentAlignment(formLayout, Alignment.MIDDLE_CENTER);

	this.addComponent(this.editPasswordPolicyPanel);
	this.setComponentAlignment(this.editPasswordPolicyPanel, Alignment.TOP_CENTER);
    }

    @Override
    public void initListener() {

	this.editGlobalSettingSaveButtonClickListener.setBasedComponent(this);
	this.editGlobalSettingClearButtonClickListener.setBasedComponent(this);

	this.editGlobalSettingSaveButtonClickListener.setAutoEnabled(true);
	this.editGlobalSettingClearButtonClickListener.setAutoEnabled(true);

	this.btnSave.addClickListener(this.editGlobalSettingSaveButtonClickListener);
	this.btnClear.addClickListener(this.editGlobalSettingClearButtonClickListener);

    }

    @Override
    public void initValidator() {

	this.txtPayAtAllServiceInquiryPeriod.setImmediate(true);
	this.txtPayAtAllServiceInquiryPeriod.setRequired(true);
	this.txtPayAtAllServiceInquiryPeriod.setRequiredError(this.messageBAO
		.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.payAtAllServiceInquiryPeriod.mandatory"));
	RegexpValidator minPasswordLengthRegexpValidator = new RegexpValidator(
		"[0-9]*",
		true,
		this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.payAtAllServiceInquiryPeriod.format"));
	this.txtPayAtAllServiceInquiryPeriod.addValidator(minPasswordLengthRegexpValidator);

	this.txtTransactionReportMaximumPeriodSearchAeonUser.setImmediate(true);
	this.txtTransactionReportMaximumPeriodSearchAeonUser.setRequired(true);
	this.txtTransactionReportMaximumPeriodSearchAeonUser
		.setRequiredError(this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.transactionReportMaximumPeriodSearchAeonUser.mandatory"));
	RegexpValidator enforePasswordHistoryRegexpValidator = new RegexpValidator(
		"[0-9]*",
		true,
		this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.transactionReportMaximumPeriodSearchAeonUser.format"));
	this.txtTransactionReportMaximumPeriodSearchAeonUser.addValidator(enforePasswordHistoryRegexpValidator);

	this.txtTransactionReportMaximumPeriodSearchMerchantUser.setImmediate(true);
	this.txtTransactionReportMaximumPeriodSearchMerchantUser.setRequired(true);
	this.txtTransactionReportMaximumPeriodSearchMerchantUser
		.setRequiredError(this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.transactionReportMaximumPeriodSearchMerchantUser.mandatory"));
	RegexpValidator minUpperCaseRegexpValidator = new RegexpValidator(
		"[0-9]*",
		true,
		this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.transactionReportMaximumPeriodSearchMerchantUser.format"));
	this.txtTransactionReportMaximumPeriodSearchMerchantUser.addValidator(minUpperCaseRegexpValidator);

	this.txtAuditLogMaximumPeriodSearch.setImmediate(true);
	this.txtAuditLogMaximumPeriodSearch.setRequired(true);
	this.txtAuditLogMaximumPeriodSearch.setRequiredError(this.messageBAO
		.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.auditLogMaximumPeriodSearch.mandatory"));
	RegexpValidator minNumericLengthRegexpValidator = new RegexpValidator(
		"[0-9]*",
		true,
		this.messageBAO
			.getMessage("com.fw.ui.view.settings.globalsetting.EditGlobalSettingView.message.auditLogMaximumPeriodSearch.format"));
	this.txtAuditLogMaximumPeriodSearch.addValidator(minNumericLengthRegexpValidator);

    }

    @Override
    public void initData() {
	try {

	    globalSettingBean = globalSettingBAO.getGlobalSetting();
	    if (globalSettingBean != null) {
		uiCommonUtils.setValueUIComponent(txtPayAtAllServiceInquiryPeriod, globalSettingBean.getPayAtAllServiceInquiryPeriod());
		uiCommonUtils.setValueUIComponent(txtTransactionReportMaximumPeriodSearchAeonUser,
			globalSettingBean.getTransactionReportMaximumPeriodSearchAeonUser());
		uiCommonUtils.setValueUIComponent(txtTransactionReportMaximumPeriodSearchMerchantUser,
			globalSettingBean.getTransactionReportMaximumPeriodSearchMerchantUser());
		uiCommonUtils.setValueUIComponent(txtAuditLogMaximumPeriodSearch, globalSettingBean.getAuditLogMaximumPeriodSearch());
	    }

	} catch (Exception e) {
	    e.printStackTrace();
	    String msg = this.messageBAO.getMessage("message.error.common");
	    Notification notification = new Notification("Warning", msg, Notification.Type.WARNING_MESSAGE, true);
	    notification.setDelayMsec(1000);
	    notification.show(Page.getCurrent());
	}
    }

    public GlobalSettingBAO getGlobalSettingBAO() {
	return globalSettingBAO;
    }

    public void setGlobalSettingBAO(GlobalSettingBAO globalSettingBAO) {
	this.globalSettingBAO = globalSettingBAO;
    }

    public MessageBAO getMessageBAO() {
	return messageBAO;
    }

    public void setMessageBAO(MessageBAO messageBAO) {
	this.messageBAO = messageBAO;
    }

    public GlobalSettingBean getGlobalSettingBean() {
	return globalSettingBean;
    }

    public void setGlobalSettingBean(GlobalSettingBean globalSettingBean) {
	this.globalSettingBean = globalSettingBean;
    }

    public EditGlobalSettingSaveButtonClickListener getEditGlobalSettingSaveButtonClickListener() {
	return editGlobalSettingSaveButtonClickListener;
    }

    public void setEditGlobalSettingSaveButtonClickListener(
	    EditGlobalSettingSaveButtonClickListener editGlobalSettingSaveButtonClickListener) {
	this.editGlobalSettingSaveButtonClickListener = editGlobalSettingSaveButtonClickListener;
    }

    public EditGlobalSettingClearButtonClickListener getEditGlobalSettingClearButtonClickListener() {
	return editGlobalSettingClearButtonClickListener;
    }

    public void setEditGlobalSettingClearButtonClickListener(
	    EditGlobalSettingClearButtonClickListener editGlobalSettingClearButtonClickListener) {
	this.editGlobalSettingClearButtonClickListener = editGlobalSettingClearButtonClickListener;
    }

    public Panel getEditPasswordPolicyPanel() {
	return editPasswordPolicyPanel;
    }

    public void setEditPasswordPolicyPanel(Panel editPasswordPolicyPanel) {
	this.editPasswordPolicyPanel = editPasswordPolicyPanel;
    }

    public Label getLblPayAtAllServiceInquiryPeriod() {
	return lblPayAtAllServiceInquiryPeriod;
    }

    public void setLblPayAtAllServiceInquiryPeriod(Label lblPayAtAllServiceInquiryPeriod) {
	this.lblPayAtAllServiceInquiryPeriod = lblPayAtAllServiceInquiryPeriod;
    }

    public Label getLblTransactionReportMaximumPeriodSearchAeonUser() {
	return lblTransactionReportMaximumPeriodSearchAeonUser;
    }

    public void setLblTransactionReportMaximumPeriodSearchAeonUser(Label lblTransactionReportMaximumPeriodSearchAeonUser) {
	this.lblTransactionReportMaximumPeriodSearchAeonUser = lblTransactionReportMaximumPeriodSearchAeonUser;
    }

    public Label getLblTransactionReportMaximumPeriodSearchMerchantUser() {
	return lblTransactionReportMaximumPeriodSearchMerchantUser;
    }

    public void setLblTransactionReportMaximumPeriodSearchMerchantUser(Label lblTransactionReportMaximumPeriodSearchMerchantUser) {
	this.lblTransactionReportMaximumPeriodSearchMerchantUser = lblTransactionReportMaximumPeriodSearchMerchantUser;
    }

    public Label getLblAuditLogMaximumPeriodSearch() {
	return lblAuditLogMaximumPeriodSearch;
    }

    public void setLblAuditLogMaximumPeriodSearch(Label lblAuditLogMaximumPeriodSearch) {
	this.lblAuditLogMaximumPeriodSearch = lblAuditLogMaximumPeriodSearch;
    }

    public Label getLblPayAtAllServiceInquiryPeriodValidateMessage() {
	return lblPayAtAllServiceInquiryPeriodValidateMessage;
    }

    public void setLblPayAtAllServiceInquiryPeriodValidateMessage(Label lblPayAtAllServiceInquiryPeriodValidateMessage) {
	this.lblPayAtAllServiceInquiryPeriodValidateMessage = lblPayAtAllServiceInquiryPeriodValidateMessage;
    }

    public Label getLblTransactionReportMaximumPeriodSearchAeonUserValidateMessage() {
	return lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage;
    }

    public void setLblTransactionReportMaximumPeriodSearchAeonUserValidateMessage(
	    Label lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage) {
	this.lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage = lblTransactionReportMaximumPeriodSearchAeonUserValidateMessage;
    }

    public Label getLblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage() {
	return lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage;
    }

    public void setLblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage(
	    Label lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage) {
	this.lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage = lblTransactionReportMaximumPeriodSearchMerchantUserValidateMessage;
    }

    public Label getLblAuditLogMaximumPeriodSearchValidateMessage() {
	return lblAuditLogMaximumPeriodSearchValidateMessage;
    }

    public void setLblAuditLogMaximumPeriodSearchValidateMessage(Label lblAuditLogMaximumPeriodSearchValidateMessage) {
	this.lblAuditLogMaximumPeriodSearchValidateMessage = lblAuditLogMaximumPeriodSearchValidateMessage;
    }

    public HorizontalLayout getRow1Validate() {
	return row1Validate;
    }

    public void setRow1Validate(HorizontalLayout row1Validate) {
	this.row1Validate = row1Validate;
    }

    public HorizontalLayout getRow2Validate() {
	return row2Validate;
    }

    public void setRow2Validate(HorizontalLayout row2Validate) {
	this.row2Validate = row2Validate;
    }

    public HorizontalLayout getRow3Validate() {
	return row3Validate;
    }

    public void setRow3Validate(HorizontalLayout row3Validate) {
	this.row3Validate = row3Validate;
    }

    public HorizontalLayout getRow4Validate() {
	return row4Validate;
    }

    public void setRow4Validate(HorizontalLayout row4Validate) {
	this.row4Validate = row4Validate;
    }

    public Button getBtnSave() {
	return btnSave;
    }

    public void setBtnSave(Button btnSave) {
	this.btnSave = btnSave;
    }

    public Button getBtnClear() {
	return btnClear;
    }

    public void setBtnClear(Button btnClear) {
	this.btnClear = btnClear;
    }

    public TextField getTxtPayAtAllServiceInquiryPeriod() {
	return txtPayAtAllServiceInquiryPeriod;
    }

    public void setTxtPayAtAllServiceInquiryPeriod(TextField txtPayAtAllServiceInquiryPeriod) {
	this.txtPayAtAllServiceInquiryPeriod = txtPayAtAllServiceInquiryPeriod;
    }

    public TextField getTxtTransactionReportMaximumPeriodSearchAeonUser() {
	return txtTransactionReportMaximumPeriodSearchAeonUser;
    }

    public void setTxtTransactionReportMaximumPeriodSearchAeonUser(TextField txtTransactionReportMaximumPeriodSearchAeonUser) {
	this.txtTransactionReportMaximumPeriodSearchAeonUser = txtTransactionReportMaximumPeriodSearchAeonUser;
    }

    public TextField getTxtTransactionReportMaximumPeriodSearchMerchantUser() {
	return txtTransactionReportMaximumPeriodSearchMerchantUser;
    }

    public void setTxtTransactionReportMaximumPeriodSearchMerchantUser(TextField txtTransactionReportMaximumPeriodSearchMerchantUser) {
	this.txtTransactionReportMaximumPeriodSearchMerchantUser = txtTransactionReportMaximumPeriodSearchMerchantUser;
    }

    public TextField getTxtAuditLogMaximumPeriodSearch() {
	return txtAuditLogMaximumPeriodSearch;
    }

    public void setTxtAuditLogMaximumPeriodSearch(TextField txtAuditLogMaximumPeriodSearch) {
	this.txtAuditLogMaximumPeriodSearch = txtAuditLogMaximumPeriodSearch;
    }

    public UICommonUtils getUiCommonUtils() {
	return uiCommonUtils;
    }

    public void setUiCommonUtils(UICommonUtils uiCommonUtils) {
	this.uiCommonUtils = uiCommonUtils;
    }

}
